{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-content layui-form">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <span style="font-weight: bold;font-size: 15px;color: red;">套装下商品信息（{$t_names[$data.tui_tg_type]}）：</span>
            <div class="layui-form-item">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th>商品名</th>
                        <th>款号</th>
                        <th>规格</th>
                        <th>调换尺码</th>
                        <th>数量</th>
                        <th>收货状态</th>
                        <th>售后状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="data.goods" item="vo"}
                    <tr>
                        <td>{$vo.good_name}</td>
                        <td>{$vo.good_coding}</td>
                        <td>{$vo.goods_info}</td>
                        <td>{$vo.erp_new_size}</td>
                        <td>{$vo.num}</td>
                        <td>
                            {if $vo.tui_sure_get == 1}未确认收货{/if}
                            {if $vo.tui_sure_get == 2}已确认-已收到{/if}
                            {if $vo.tui_sure_get == 3}已确认-未收到{/if}
                        </td>
                        {if $key == 0}
                        <td rowspan="{$rows}">
                            {if $vo.status == 1}待处理{/if}
                            {if $vo.status == 2}已同意
                                {if $vo.is_send == 0}
                                - 未发货
                                {else /}
                                - 已发货
                                {/if}
                            {/if}
                            {if $vo.status == 3}已拒绝{/if}
                        </td>
                        {/if}
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
            <p style="font-weight: bold;font-size: 15px;color: red;">订单信息：</p>
            <div class="layui-form-item">
                <label class="layui-form-label">学生名称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.uson_username?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">父母电话</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.uson_parent_phone?:''}">
                </div>
            </div>
            <div class="layui-form-item  ">
                <label class="layui-form-label">换货原因：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.remark}">
                </div>
            </div>
            {if $data.pic_list}
            <div class="layui-form-item  ">
                <label class="layui-form-label">图片：</label>
                <div class="layui-input-block aaaaaa">
                    {volist name="data.pic_list" id='img'}
                    <img src="{$img}" height="50" />
                    {/volist}
                </div>
            </div>
            {/if}
            <div class="layui-form-item  ">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.created_at?:''}">
                </div>
            </div>
            <div class="layui-form-item  ">
                <label class="layui-form-label">回寄物流：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.express}">
                </div>
            </div>
            <div class="layui-form-item  ">
                <label class="layui-form-label">回寄单号：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.express_no}">
                </div>
            </div>
            {if $data.is_send==1}
            <div class="layui-form-item  ">
                <label class="layui-form-label">发货物流：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.merchant_express}">
                </div>
            </div>
            <div class="layui-form-item  ">
                <label class="layui-form-label">发货单号：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.merchant_express_no}">
                </div>
            </div>
            {/if}
            {if $data.merchant_remark}
            <div class="layui-form-item  ">
                <label class="layui-form-label">处理备注：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.merchant_remark}">
                </div>
            </div>
            {/if}
            {if $data.status == 2}
            <div class="layui-form-item  ">
                <label class="layui-form-label">用户是否确认收货：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.tui_user_get == 1 ? '未确认收货' : '已确认收货'}">
                </div>
            </div>
            {if $data.tui_user_get == 2}
            <div class="layui-form-item  ">
                <label class="layui-form-label">确认收货时间：</label>
                <div class="layui-input-block">
                    <input type="text" disabled class="layui-input " value="{$data.tui_sure_get_time}">
                </div>
            </div>
            {/if}
            {/if}

            <div class="layui-form-item  ">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-primary" onclick="wk.layer_close('close')">关闭</button>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>

</script>
</body>
</html>
<script>
    $('.aaaaaa').viewer({
        url: 'data-original',
    });
</script>